package com.ux.event
{
	import flash.events.Event;
	
	public class YouTubeEvent extends Event
	{
		public static const XML_SEARCH_SET_COMPLETE : String = "onXmlSearchSetComplete";
		
		public static const READY : String = "ready";
		public static const STATE_CHANGE : String = "stateChange";
		public static const PLAYBACK_QUALITY_CHANGE : String = "playbackQualityChange";
		public static const ERROR : String = "error";
		
		
		public var data : Object = null;
		
		public function YouTubeEvent(type:String, _data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			data = _data;
		}
		
		
		override public function clone():Event
		{
			return new YouTubeEvent( type, data, bubbles, cancelable );
		}
	}
}